package com.feel.mall.common.service;

import com.feel.mall.common.bean.Admin;
import com.feel.mall.common.exception.FeelException;

/**
 * @Author: 刘永钦
 * @Description:
 */
public interface AdminService {
    Admin login(String username, String password) throws FeelException;

    Admin selectById(Integer id);

    void updatePwd(String oldPassword, String newPassword, Integer id) throws FeelException;

    void updateInfo(Admin admin);

    void resetPwd(Admin admin);
//     获取管理员列表
    Object getAll(Integer pageNum, Integer pageSize);

    void addInfo(Admin admin) throws FeelException;
}
